{% extends 'admin/base.html' %}

{% block main %}
    {{ super() }}
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo layui-hide-xs layui-bg-black"> FlaskCMS 后台管理系统</div>
            <!-- 头部区域（可配合layui已有的水平导航） -->
            <ul class="layui-nav layui-layout-left">
                <!-- 移动端显示 -->
                <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                    <i class="layui-icon layui-icon-spread-left"></i>
                </li>
                <li class="layui-nav-item"><a href="">新建</a></li>
                <li class="layui-nav-item"><a href="">评论</a></li>
            </ul>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <a href="javascript:;"> 贤心 </a>
                    <dl class="layui-nav-child">
                        <dd><a href="">基本资料</a></dd>
                        <dd><a href="">安全设置</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="">退了</a></li>
            </ul>
        </div>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-shrink="all" lay-filter="test">
                    <li class="layui-nav-item">
                        <a href="/admin/dashboard">仪表盘</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">文章</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/admin/category/list">分类目录</a></dd>
                            <dd><a href="/admin/post/list">文章列表</a></dd>
                            <dd><a href="/admin/post">发布文章</a></dd>
                            <dd><a href="/admin/tag/list">标签</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">页面</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/admin/page/list">页面列表</a></dd>
                            <dd><a href="/admin/page">新建页面</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">媒体</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/admin/media/picture/list">图片库</a></dd>
                            <dd><a href="/admin/media/video/list">视频库</a></dd>
                            <dd><a href="/admin/media/document/list">文档库</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item"><a href="/admin/comment/list">评论</a></li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">用户</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/admin/user/list">所有用户</a></dd>
                            <dd><a href="/admin/user">添加用户</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">设置</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/admin/site/setting">站点设置</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item"><a href="/admin/about">关于</a></li>
                </ul>
            </div>
        </div>

        <div class="layui-body">
            <iframe id="admin-frame" src="/admin/dashboard" frameborder="0" width=100% height=100%></iframe>
        </div>

        <div class="layui-footer">
            © ilearnging
        </div>
    </div>

{% endblock %}
